package com.jumper.property.comparer.core.formatter;


import com.jumper.property.comparer.core.constant.FormatConstant;

public class ArrayDiffHeaderFormatter extends AbstractDiffFormatter {

    private final String propertyName;

    public ArrayDiffHeaderFormatter(String propertyName) {
        this.propertyName = propertyName;
    }

    @Override
    public String format() {
        return pattern.getArrayDiffHeaderPattern()
                .replace(FormatConstant.DISPLAY_PROPERTY_KEY, propertyName);
    }
}
